package com.example.server;

public class ErrorConst {

	public static final int SUCCUESS = 0;
	public static final int FAIL = 1;
	
	public static final int MISSING_PARAMETER = 1000;
	public static final int VALIDATE_PARAMETER = 1001;
	public static final int TOKEN_ERROR = 1002;
	//方法不存在
	public static final int METHOD_NOT_SUPPORT = 2000;
	
	public static final int LOGIN_USER_NOT_EXIST = 3000;	//用户不存在
	public static final int LOGIN_USER_PASSWD_ERROR = 3001;
	public static final int PAYPASSWORD_ERROR = 3003;
	public static final int OLD_PAYPASSWORD_ERROR = 3004;
	public static final int CONFIRM_PAYPASSWORD_ERROR = 3005;
	public static final int LOGIN_USER_ALREADY_QUIT = 3006; //登录人员已经离职
	public static final int REGIST_USER_DUP_ERROR = 4001;
	public static final int LOGIN_SYSTEM_ERROR = 3002;	
	
	public static final int SYSTEM_ERROR = 9000;
	public static final int SYSTEM_SESSION_TIMEOUT = 9001;	//系统session超时
	public static final int DB_SQL_ERROR = 9002;
	
	public static final int CONFIG_ERROR = 9003;
	public static final int CURRENT_STATUS_CANT_EDIT_ERROR = 9004;
	public static final int NO_APP_UPDATE_ERROR = 9005;
	public static final int NO_SUCH_USER = 9006;
	public static final int DONOT_NEED_UPDATE_DATABASE = 9007;
	public static final int PARENT_CUSTOMER_NOT_EXIST = 9008;
	public static final int CUSTOMER_NOT_EXIST = 9009;
	public static final int DB_SQL_NOT_UPDATE = 9010;
	public static final int PERMISSION_DENIED = 9011;	//权限不足
	public static final int UPLOAD_FILE_ERROR = 9012;
	public static final int ATTACHMENT_NOT_EXIST = 9013;
	public static final int EMAIL_ALREADY_EXIST = 9014;
	public static final int SAFECODE_INCORRECT = 9015;
	public static final int INVITATION_CODE_NOT_EXIST = 9100;
	public static final int INVITATION_CODE_ALREADY_EXIST = 9200;
	public static final int INVITATION_REGISTER_ERROR = 9101;
	public static final int INVITATION_ACCOUNT_ALREADY_EXIST = 9102;
	public static final int MOBILE_HAS_EXIST = 9103;
	public static final int NOT_AVAILABLE = 9104;
	public static final int PARAMETERS_NOT_EMPTY = 9105; 
	
	public static String getError(int code){
		return "";
	}
	
}
